﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ScrumLite.Services;
using ScrumLite.Services.Contracts;
using System.Collections.ObjectModel;

namespace ScrumLite.Gateways
{
    public class DeliverablesServiceClient : ClientBase<IDeliverablesService>, IDeliverablesService
    {

        #region IDeliverablesService Members

        public Deliverable[] GetDeliverables(string projectId)
        {
            return base.Channel.GetDeliverables(projectId);
        }

        public Deliverable GetDeliverable(string id)
        {
            return base.Channel.GetDeliverable(id);
        }

        public int GetNextMoniker(string projectId)
        {
            return base.Channel.GetNextMoniker(projectId);
        }

        public Guid GetDeliverableByMoniker(string projectId, int moniker)
        {
            return base.Channel.GetDeliverableByMoniker(projectId, moniker);
        }

        public Deliverable[] GetDeliverablesByWorkArea(WorkArea workArea)
        {
            return base.Channel.GetDeliverablesByWorkArea(workArea);
        }

        public WorkArea[] GetWorkAreas(string deliverableId)
        {
            return base.Channel.GetWorkAreas(deliverableId);
        }

        public void Add(string projectId, Deliverable deliverable)
        {
            base.Channel.Add(projectId, deliverable);
        }

        public void Update(string projectId, Deliverable deliverable)
        {
            base.Channel.Update(projectId, deliverable);
        }

        #endregion
    }
}
